// 查看单个详情模块
import * as server from '@/utils/http'
import URL from '@/environment/global'
// 解构赋值
let { HTTP_URL } = URL
/**
 * 获取单个菜单详情
 * method: GET
 * @param id | 菜单id
 */
export function getSingleMenuInfo (id) {
  return server.get(`${HTTP_URL}/menu/${id}`)
}

/**
 * 预算编制阶段 获取上级项目信息
 * @param {String} id
 */
export function getLastProjectInfo (id) {
  return server.get(`${HTTP_URL}/budget/write/${id}`)
}

/**
 * 查看预算详情
 * @param {String} id
 */
export function getSingleBudgetAuditPrjInfo (id) {
  return server.get(`${HTTP_URL}/budget/audit/${id}`)
}
